﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared.Master" AutoEventWireup="true"
    CodeBehind="Personal.aspx.cs" Inherits="ESHOP.ADMIN.Personal" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
    <form id="frmUser" runat="server">
    <div style="padding: 10px;">
        <h3>
            Info Personal</h3>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="productDetail">
            <asp:UpdatePanel ID="Updinfor" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Tên
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:TextBox ID="txtName" runat="server" class="inp-form"></asp:TextBox>
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Email:
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:TextBox ID="txtEmail" runat="server" class="inp-form"></asp:TextBox>
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Điện thoại:
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:TextBox ID="txtDienThoai" runat="server" class="inp-form"></asp:TextBox>
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                            </td>
                        </tr>
                         <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Quốc gia
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:DropDownList runat="server" ID="ddlQuocgia" />
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                &nbsp;<th valign="top">
                                    &nbsp;</th>
                                <td style="width: 391px">
                                    <asp:Button ID="btnSearch" runat="server" Text="Search" 
                                        onclick="btnSearch_Click1" />
                                </td>
                                <td style="text-align: right; padding-right: 5px;">
                                    &nbsp;</td>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                            </td>
                            <td style="text-align: left; padding-right: 5px;">
                                <asp:Label runat="server" ID="lbThongBao" Font-Bold="true" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <h3>
            List Personal</h3>
        <asp:UpdatePanel ID="updategrid" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="listProduct">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <h3>
                                List Trade Lead</h3>
                            <div class="listProduct">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <div class="listProduct">
                                            <asp:GridView ID="GVProducts" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84"
                                                BorderStyle="None" BorderWidth="1px" CellPadding="0" CellSpacing="0" EnableModelValidation="True"
                                                AutoGenerateColumns="False" Height="178px" Width="100%" OnRowCommand="GVProducts_RowCommand"
                                                AllowPaging="true" PageSize="10" OnPageIndexChanging="GVProducts_PageIndexChanging">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="checkbox" HeaderText="STT" HeaderStyle-Width="7%">
                                                        <ItemTemplate>
                                                            <%# Container.DataItemIndex + 1%>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="15%" HeaderText="Tên công ty">
                                                        <ItemTemplate>
                                                            <%# Eval("USERNAME") %>
                                                        </ItemTemplate>
                                                        <ItemStyle Font-Bold="true" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="10%" HeaderText="Full name">
                                                        <ItemTemplate>
                                                            <%# Eval("FULLNAME")%>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="15%" HeaderText="Địa chỉ ">
                                                        <ItemTemplate>
                                                            <%# Eval("CONTACTDDRESS")%>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="15%" HeaderText="Email ">
                                                        <ItemTemplate>
                                                            <%# Eval("EMAIL")%>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="6%" HeaderText="Options">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkBtndelete" runat="server" CommandArgument='<%# Eval("USERNAME") %>'
                                                                CommandName='<%# Eval("ISACTIVE").ToString()=="True"?"DeActive":"Active" %>' Text='<%# Eval("ISACTIVE").ToString()=="True"?"DeActive":"Active" %>'></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <ItemStyle Font-Bold="true" HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                                                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                            </asp:GridView>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <!--- Action box--->
                                <!---end Action box --->
                                <!--Phan trang-->
                                <!--end phan trang-->
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</asp:Content>
